'''
Created on 27 oct. 2011

@author: Jean-Guillaume
'''
import cocos

class Gui(object):
    def __init__(self):
        cocos.director.director.init()
        mainScene = cocos.scene.Scene()
        mainScene.add(BackgroundLayer(), name="backgroundLayer")
        
        cocos.director.director.run(mainScene)
        
        sship = SpriteShip("ship", position = (0,0))

class BackgroundLayer(cocos.layer.util_layers.ColorLayer): #@UndefinedVariable
    '''
    For the moment, it is just a black background,
    but later it will show a nice artwork
    '''
    def __init__(self):
        super(BackgroundLayer, self).__init__(0, 0, 0, 255)
        
class SpriteShip(cocos.sprite.Sprite):
    def __init__(self, ship, *args, **kwargs):
        super(SpriteShip, self).__init__(*args, **kwargs)
        self.ship = ship